/*
 * Wave.cpp
 *
 *  Created on: 2011/05/28
 *      Author: naoki
 */

#include "Stdafx.h"
#include "Sound/src/WaveImpl.h"

namespace NTEngine {
namespace Sound {

Wave Wave::create( const char* filename ) {
	Wave ret;
	ret.mImpl = NEW Impl( filename );
	return ret;
}

Wave Wave::create( const unsigned char* buffer, unsigned size ) {
	Wave ret;
	ret.mImpl = NEW Impl( buffer, size );
	return ret;
}

bool Wave::isReady() {
	return mImpl->isReady();
}

bool Wave::isError() const {
	return mImpl->mIsError;
}

#define TYPE Wave
#include "NTEngine/Base/Impl/ReferenceCounterTemplate.h"

} // namespace Sound
} // namespace NTEngine
